<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //  ②创建方式
        // -字面量-----[元素1，元素2，……]----推荐
        let arr1 = [1, 2, 3, 4, 5];
        console.log(arr1 instanceof Array)
        // -构造函数---- new Array(元素1，元素2，……)
        let arr2 = new Array(1, 2, 3, 4, 5);
        console.log(arr2 instanceof Array)

    </script>
</head>
<body>

</body>
</html>
